package com.magic.web.dessignmode.controller;

import com.magic.web.dessignmode.config.FactoryPatternConfig;
import com.magic.web.dessignmode.service.FactoryPatternService;

/**
 * @description
 * @author wm
 * @date 2021/3/9
 */

public class FactoryPatternController {
    public static void main(String[] args) {
        FactoryPatternConfig factoryPatternConfig = new FactoryPatternConfig();
        FactoryPatternService cg = factoryPatternConfig.getFactoryPattern("CG");
        cg.draw();
        FactoryPatternService tw = factoryPatternConfig.getFactoryPattern("TW");
        tw.draw();
        FactoryPatternService cf = factoryPatternConfig.getFactoryPattern("CF");
        cf.draw();
    }
}
